import pymongo


def DB_link(_link):
    _con = pymongo.MongoClient(_link)
    _dbs = _con.database_names()
    _db = _con["unluckcams"]
    print(_dbs)
    for i in _db["cams"].find():
        print(i.get("auth", {}))


def main():
	_link = ""
    DB_link(_link)

if __name__ == '__main__':
    main()
